package com.czk.factory.config;

/**
 * @Author:ChenZhangKun
 * @Date: 2023/2/19 10:27
 */
public interface SingletonBeanRegistry {
    /**
     * 获取单例对象
     * @param beanName
     * @return
     */
    Object getSingleton(String beanName);

    /**
     * z注册单例对象
     *
     * @param beanName
     * @param singletonObject
     */
    void registerSingleton(String beanName, Object singletonObject);
}
